package com.neeraj.SharingArtifacts;

import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;

public class Alerts {
	public Alerts() {
		
	}
	public void ShowEmptyAlert(Context con)
	{		
		Dialog alertDialog = new Dialog(con);
		alertDialog.setContentView(R.layout.custom_dialog);
		alertDialog.setTitle("About ME!");
			
		TextView text = (TextView) alertDialog.findViewById(R.id.text);
		String str = "\n\tThis Android app is developed keeping in mind that where ever you go "+
				"and visit places, share those moments with anybody you want "+
				"and provide a virtual tour of that place. Also it can be used "+
				"by scientist who are working in some remote locations and can "+
				"collect the data and artifacts related to that place. The meaning"+
				" of visual tour is to provide the content visually on the map, "+
				"which helps to find out the location easily and important artifacts"+
				" related to that location/place.\n\tIn a nutshell, as a user you can"+
				" provide the content and use them as per your needs. And as a tourist,"+
				" you can search places and by looking at the artifacts, can decide if "+
				"you want to spend the vacation there. For scientific usage, collecting "+
				"data timely and let the other research team work on your collections.";
		text.setText(str);
//		ImageView image = (ImageView) alertDialog.findViewById(R.id.image);
//		image.setImageResource(R.drawable.ic_launcher2);
		alertDialog.show();
	}
	
	public void CatchError(Context con) {	    	
    	Dialog diag=new Dialog(con);
    	diag.setTitle("Error");
    	TextView txt=new TextView(con);
    	txt.setText("Under development");
    	diag.setContentView(txt);
    	diag.show();
    }
}
